import request from '@/utils/request'

// 查询奖惩信息列表
export function listReward_punishment(query) {
  return request({
    url: '/app/reward_punishment/list',
    method: 'get',
    params: query
  })
}

// 查询奖惩信息详细
export function getReward_punishment(rewardPunishmentId) {
  return request({
    url: '/app/reward_punishment/' + rewardPunishmentId,
    method: 'get'
  })
}

// 新增奖惩信息
export function addReward_punishment(data) {
  return request({
    url: '/app/reward_punishment',
    method: 'post',
    data: data
  })
}

// 修改奖惩信息
export function updateReward_punishment(data) {
  return request({
    url: '/app/reward_punishment',
    method: 'put',
    data: data
  })
}

// 删除奖惩信息
export function delReward_punishment(rewardPunishmentId) {
  return request({
    url: '/app/reward_punishment/' + rewardPunishmentId,
    method: 'delete'
  })
}
